import 'package:flutter/material.dart';

class Widget_BottomAppBar_Page extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("Center"),
        ),
        body: Center(
//          widthFactor: 2,
//          heightFactor: 2,
          child: Text("center组件"),
        ),
        bottomNavigationBar: BottomAppBar(
          child: Row(
            children: <Widget>[Icon(Icons.home), Icon(Icons.my_location)],
          ),
        ),
        floatingActionButton: FloatingActionButton(
            onPressed: () {},
            child: ImageIcon(
              AssetImage("images/app.png"),
              color: Colors.transparent,
            )),
        floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,
      ),
    );
  }
}

/**
 *   const BottomAppBar({
    Key key,
    this.color, 背景色
    this.elevation,
    this.shape, 设置底部工具栏的形状，一般和floatingActionButton配合使用，CircularNotchedRectangle嵌入里面
    this.clipBehavior = Clip.none,
    this.notchMargin = 4.0, CircularNotchedRectangle时缺口外边距
    this.child,
    })
 */
